#ifndef REGISTER_H
#define REGISTER_H

#include <QWidget>
#include <opencv.hpp>
namespace Ui {
class Register;
}

class Register : public QWidget
{
    Q_OBJECT

public:
    explicit Register(QWidget *parent = nullptr);
    ~Register();
    void timerEvent(QTimerEvent *e);

private slots:
    void on_resetbt_clicked();

    void on_addpicBt_clicked();

    void on_registerbt_clicked();

    void on_videoswitchBt_clicked();

    void on_cameraBt_clicked();

private:
    Ui::Register *ui;
    int timerid;
    cv::VideoCapture cap;
    cv::Mat image;
    cv::Mat rgbImage;   //摄像头
};

#endif // REGISTER_H
